package com.hzf.workman.dao.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class WorkmanDemandWltExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    public WorkmanDemandWltExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andDemandIdIsNull() {
            addCriterion("demand_id is null");
            return (Criteria) this;
        }

        public Criteria andDemandIdIsNotNull() {
            addCriterion("demand_id is not null");
            return (Criteria) this;
        }

        public Criteria andDemandIdEqualTo(Integer value) {
            addCriterion("demand_id =", value, "demandId");
            return (Criteria) this;
        }

        public Criteria andDemandIdNotEqualTo(Integer value) {
            addCriterion("demand_id <>", value, "demandId");
            return (Criteria) this;
        }

        public Criteria andDemandIdGreaterThan(Integer value) {
            addCriterion("demand_id >", value, "demandId");
            return (Criteria) this;
        }

        public Criteria andDemandIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("demand_id >=", value, "demandId");
            return (Criteria) this;
        }

        public Criteria andDemandIdLessThan(Integer value) {
            addCriterion("demand_id <", value, "demandId");
            return (Criteria) this;
        }

        public Criteria andDemandIdLessThanOrEqualTo(Integer value) {
            addCriterion("demand_id <=", value, "demandId");
            return (Criteria) this;
        }

        public Criteria andDemandIdIn(List<Integer> values) {
            addCriterion("demand_id in", values, "demandId");
            return (Criteria) this;
        }

        public Criteria andDemandIdNotIn(List<Integer> values) {
            addCriterion("demand_id not in", values, "demandId");
            return (Criteria) this;
        }

        public Criteria andDemandIdBetween(Integer value1, Integer value2) {
            addCriterion("demand_id between", value1, value2, "demandId");
            return (Criteria) this;
        }

        public Criteria andDemandIdNotBetween(Integer value1, Integer value2) {
            addCriterion("demand_id not between", value1, value2, "demandId");
            return (Criteria) this;
        }

        public Criteria andWuliaotuIsNull() {
            addCriterion("wuliaotu is null");
            return (Criteria) this;
        }

        public Criteria andWuliaotuIsNotNull() {
            addCriterion("wuliaotu is not null");
            return (Criteria) this;
        }

        public Criteria andWuliaotuEqualTo(String value) {
            addCriterion("wuliaotu =", value, "wuliaotu");
            return (Criteria) this;
        }

        public Criteria andWuliaotuNotEqualTo(String value) {
            addCriterion("wuliaotu <>", value, "wuliaotu");
            return (Criteria) this;
        }

        public Criteria andWuliaotuGreaterThan(String value) {
            addCriterion("wuliaotu >", value, "wuliaotu");
            return (Criteria) this;
        }

        public Criteria andWuliaotuGreaterThanOrEqualTo(String value) {
            addCriterion("wuliaotu >=", value, "wuliaotu");
            return (Criteria) this;
        }

        public Criteria andWuliaotuLessThan(String value) {
            addCriterion("wuliaotu <", value, "wuliaotu");
            return (Criteria) this;
        }

        public Criteria andWuliaotuLessThanOrEqualTo(String value) {
            addCriterion("wuliaotu <=", value, "wuliaotu");
            return (Criteria) this;
        }

        public Criteria andWuliaotuLike(String value) {
            addCriterion("wuliaotu like", value, "wuliaotu");
            return (Criteria) this;
        }

        public Criteria andWuliaotuNotLike(String value) {
            addCriterion("wuliaotu not like", value, "wuliaotu");
            return (Criteria) this;
        }

        public Criteria andWuliaotuIn(List<String> values) {
            addCriterion("wuliaotu in", values, "wuliaotu");
            return (Criteria) this;
        }

        public Criteria andWuliaotuNotIn(List<String> values) {
            addCriterion("wuliaotu not in", values, "wuliaotu");
            return (Criteria) this;
        }

        public Criteria andWuliaotuBetween(String value1, String value2) {
            addCriterion("wuliaotu between", value1, value2, "wuliaotu");
            return (Criteria) this;
        }

        public Criteria andWuliaotuNotBetween(String value1, String value2) {
            addCriterion("wuliaotu not between", value1, value2, "wuliaotu");
            return (Criteria) this;
        }

        public Criteria andwuliaotu5IsNull() {
            addCriterion("wuliaotu5 is null");
            return (Criteria) this;
        }

        public Criteria andwuliaotu5IsNotNull() {
            addCriterion("wuliaotu5 is not null");
            return (Criteria) this;
        }

        public Criteria andwuliaotu5EqualTo(String value) {
            addCriterion("wuliaotu5 =", value, "wuliaotu5");
            return (Criteria) this;
        }

        public Criteria andwuliaotu5NotEqualTo(String value) {
            addCriterion("wuliaotu5 <>", value, "wuliaotu5");
            return (Criteria) this;
        }

        public Criteria andwuliaotu5GreaterThan(String value) {
            addCriterion("wuliaotu5 >", value, "wuliaotu5");
            return (Criteria) this;
        }

        public Criteria andwuliaotu5GreaterThanOrEqualTo(String value) {
            addCriterion("wuliaotu5 >=", value, "wuliaotu5");
            return (Criteria) this;
        }

        public Criteria andwuliaotu5LessThan(String value) {
            addCriterion("wuliaotu5 <", value, "wuliaotu5");
            return (Criteria) this;
        }

        public Criteria andwuliaotu5LessThanOrEqualTo(String value) {
            addCriterion("wuliaotu5 <=", value, "wuliaotu5");
            return (Criteria) this;
        }

        public Criteria andwuliaotu5Like(String value) {
            addCriterion("wuliaotu5 like", value, "wuliaotu5");
            return (Criteria) this;
        }

        public Criteria andwuliaotu5NotLike(String value) {
            addCriterion("wuliaotu5 not like", value, "wuliaotu5");
            return (Criteria) this;
        }

        public Criteria andwuliaotu5In(List<String> values) {
            addCriterion("wuliaotu5 in", values, "wuliaotu5");
            return (Criteria) this;
        }

        public Criteria andwuliaotu5NotIn(List<String> values) {
            addCriterion("wuliaotu5 not in", values, "wuliaotu5");
            return (Criteria) this;
        }

        public Criteria andwuliaotu5Between(String value1, String value2) {
            addCriterion("wuliaotu5 between", value1, value2, "wuliaotu5");
            return (Criteria) this;
        }

        public Criteria andwuliaotu5NotBetween(String value1, String value2) {
            addCriterion("wuliaotu5 not between", value1, value2, "wuliaotu5");
            return (Criteria) this;
        }

        public Criteria andWuliaotu2IsNull() {
            addCriterion("wuliaotu2 is null");
            return (Criteria) this;
        }

        public Criteria andWuliaotu2IsNotNull() {
            addCriterion("wuliaotu2 is not null");
            return (Criteria) this;
        }

        public Criteria andWuliaotu2EqualTo(String value) {
            addCriterion("wuliaotu2 =", value, "wuliaotu2");
            return (Criteria) this;
        }

        public Criteria andWuliaotu2NotEqualTo(String value) {
            addCriterion("wuliaotu2 <>", value, "wuliaotu2");
            return (Criteria) this;
        }

        public Criteria andWuliaotu2GreaterThan(String value) {
            addCriterion("wuliaotu2 >", value, "wuliaotu2");
            return (Criteria) this;
        }

        public Criteria andWuliaotu2GreaterThanOrEqualTo(String value) {
            addCriterion("wuliaotu2 >=", value, "wuliaotu2");
            return (Criteria) this;
        }

        public Criteria andWuliaotu2LessThan(String value) {
            addCriterion("wuliaotu2 <", value, "wuliaotu2");
            return (Criteria) this;
        }

        public Criteria andWuliaotu2LessThanOrEqualTo(String value) {
            addCriterion("wuliaotu2 <=", value, "wuliaotu2");
            return (Criteria) this;
        }

        public Criteria andWuliaotu2Like(String value) {
            addCriterion("wuliaotu2 like", value, "wuliaotu2");
            return (Criteria) this;
        }

        public Criteria andWuliaotu2NotLike(String value) {
            addCriterion("wuliaotu2 not like", value, "wuliaotu2");
            return (Criteria) this;
        }

        public Criteria andWuliaotu2In(List<String> values) {
            addCriterion("wuliaotu2 in", values, "wuliaotu2");
            return (Criteria) this;
        }

        public Criteria andWuliaotu2NotIn(List<String> values) {
            addCriterion("wuliaotu2 not in", values, "wuliaotu2");
            return (Criteria) this;
        }

        public Criteria andWuliaotu2Between(String value1, String value2) {
            addCriterion("wuliaotu2 between", value1, value2, "wuliaotu2");
            return (Criteria) this;
        }

        public Criteria andWuliaotu2NotBetween(String value1, String value2) {
            addCriterion("wuliaotu2 not between", value1, value2, "wuliaotu2");
            return (Criteria) this;
        }

        public Criteria andWuliaotu3IsNull() {
            addCriterion("wuliaotu3 is null");
            return (Criteria) this;
        }

        public Criteria andWuliaotu3IsNotNull() {
            addCriterion("wuliaotu3 is not null");
            return (Criteria) this;
        }

        public Criteria andWuliaotu3EqualTo(String value) {
            addCriterion("wuliaotu3 =", value, "wuliaotu3");
            return (Criteria) this;
        }

        public Criteria andWuliaotu3NotEqualTo(String value) {
            addCriterion("wuliaotu3 <>", value, "wuliaotu3");
            return (Criteria) this;
        }

        public Criteria andWuliaotu3GreaterThan(String value) {
            addCriterion("wuliaotu3 >", value, "wuliaotu3");
            return (Criteria) this;
        }

        public Criteria andWuliaotu3GreaterThanOrEqualTo(String value) {
            addCriterion("wuliaotu3 >=", value, "wuliaotu3");
            return (Criteria) this;
        }

        public Criteria andWuliaotu3LessThan(String value) {
            addCriterion("wuliaotu3 <", value, "wuliaotu3");
            return (Criteria) this;
        }

        public Criteria andWuliaotu3LessThanOrEqualTo(String value) {
            addCriterion("wuliaotu3 <=", value, "wuliaotu3");
            return (Criteria) this;
        }

        public Criteria andWuliaotu3Like(String value) {
            addCriterion("wuliaotu3 like", value, "wuliaotu3");
            return (Criteria) this;
        }

        public Criteria andWuliaotu3NotLike(String value) {
            addCriterion("wuliaotu3 not like", value, "wuliaotu3");
            return (Criteria) this;
        }

        public Criteria andWuliaotu3In(List<String> values) {
            addCriterion("wuliaotu3 in", values, "wuliaotu3");
            return (Criteria) this;
        }

        public Criteria andWuliaotu3NotIn(List<String> values) {
            addCriterion("wuliaotu3 not in", values, "wuliaotu3");
            return (Criteria) this;
        }

        public Criteria andWuliaotu3Between(String value1, String value2) {
            addCriterion("wuliaotu3 between", value1, value2, "wuliaotu3");
            return (Criteria) this;
        }

        public Criteria andWuliaotu3NotBetween(String value1, String value2) {
            addCriterion("wuliaotu3 not between", value1, value2, "wuliaotu3");
            return (Criteria) this;
        }

        public Criteria andWuliaotu4IsNull() {
            addCriterion("wuliaotu4 is null");
            return (Criteria) this;
        }

        public Criteria andWuliaotu4IsNotNull() {
            addCriterion("wuliaotu4 is not null");
            return (Criteria) this;
        }

        public Criteria andWuliaotu4EqualTo(String value) {
            addCriterion("wuliaotu4 =", value, "wuliaotu4");
            return (Criteria) this;
        }

        public Criteria andWuliaotu4NotEqualTo(String value) {
            addCriterion("wuliaotu4 <>", value, "wuliaotu4");
            return (Criteria) this;
        }

        public Criteria andWuliaotu4GreaterThan(String value) {
            addCriterion("wuliaotu4 >", value, "wuliaotu4");
            return (Criteria) this;
        }

        public Criteria andWuliaotu4GreaterThanOrEqualTo(String value) {
            addCriterion("wuliaotu4 >=", value, "wuliaotu4");
            return (Criteria) this;
        }

        public Criteria andWuliaotu4LessThan(String value) {
            addCriterion("wuliaotu4 <", value, "wuliaotu4");
            return (Criteria) this;
        }

        public Criteria andWuliaotu4LessThanOrEqualTo(String value) {
            addCriterion("wuliaotu4 <=", value, "wuliaotu4");
            return (Criteria) this;
        }

        public Criteria andWuliaotu4Like(String value) {
            addCriterion("wuliaotu4 like", value, "wuliaotu4");
            return (Criteria) this;
        }

        public Criteria andWuliaotu4NotLike(String value) {
            addCriterion("wuliaotu4 not like", value, "wuliaotu4");
            return (Criteria) this;
        }

        public Criteria andWuliaotu4In(List<String> values) {
            addCriterion("wuliaotu4 in", values, "wuliaotu4");
            return (Criteria) this;
        }

        public Criteria andWuliaotu4NotIn(List<String> values) {
            addCriterion("wuliaotu4 not in", values, "wuliaotu4");
            return (Criteria) this;
        }

        public Criteria andWuliaotu4Between(String value1, String value2) {
            addCriterion("wuliaotu4 between", value1, value2, "wuliaotu4");
            return (Criteria) this;
        }

        public Criteria andWuliaotu4NotBetween(String value1, String value2) {
            addCriterion("wuliaotu4 not between", value1, value2, "wuliaotu4");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}